import request from '@/utils/request'

// 查询消防设施列表
export function listFighting(query) {
  return request({
    url: '/equipment/fighting/list',
    method: 'get',
    params: query
  })
}

// 查询消防设施详细
export function getFighting(id) {
  return request({
    url: '/equipment/fighting/' + id,
    method: 'get'
  })
}

// 新增消防设施
export function addFighting(data) {
  return request({
    url: '/equipment/fighting',
    method: 'post',
    data: data
  })
}

// 修改消防设施
export function updateFighting(data) {
  return request({
    url: '/equipment/fighting',
    method: 'put',
    data: data
  })
}

// 删除消防设施
export function delFighting(id) {
  return request({
    url: '/equipment/fighting/' + id,
    method: 'delete'
  })
}
